<?php

use Illuminate\Support\Facades\Route;
use magein\sms\service\laravel\SmsController;

Route::middleware(config('sms.middleware') ?? [])
    ->prefix('sms')
    ->group(function () {
        Route::post('code', [SmsController::class, 'code']);
        Route::post('message', [SmsController::class, 'message']);
        Route::post('batch', [SmsController::class, 'batch']);
        Route::post('delay', [SmsController::class, 'delay']);
    });

